#!/bin/bash

# 测试日志输出
# rm -rf run.log
# go test -run TestInitialElection2A -race > run.log
# go test -run TestReElection2A -race > run.log

# # 循环调用
# rm -rf run.log
# for v in {1..20}
# do 

#     echo "第${v}次执行";
#    go test -run TestRejoin2B -race >> run.log ;
   
# done 
# rm -rf tmp.log;

# 2b
# go test -run 2B -race > run.log
# go test -run TestBasicAgree2B -race > run.log
# go test -run TestRPCBytes2B -race > run.log
# go test -run TestFailAgree2B -race > run.log 
# go test -run TestFailNoAgree2B -race > run.log  
# go test -run TestConcurrentStarts2B -race > run.log 
# go test -run TestRejoin2B -race > run.log   
# go test -run TestBackup2B -race > run.log  
# go test -run TestCount2B -race > run.log   

# 2c 
# go test -run 2C -race > run.log
# go test -run TestPersist12C -race > run.log
# go test -run TestPersist22C -race > run.log
# go test -run TestPersist32C -race > run.log 
# go test -run TestFigure82C -race > run.log 
# go test -run TestUnreliableAgree2C -race > run.log 
# go test -run TestFigure8Unreliable2C -race > run.log 
# go test -run TestReliableChurn2C -race > run.log  
# go test -run TestUnreliableChurn2C -race > run.log  